#code{
  height: 100%;
  width: 100%;
  overflow-y:scroll;
  overflow-x:scroll;
  white-space: nowrap;
  border:2px dashed #AAAAAA;
}
*{
  margin: 0;
  padding: 0;
}

#code_father{
  height: auto;
  float:right;
  width: 20%;
}
.blocklyToolboxDiv.blocklyNonSelectable{
  top: 0px;
}

.blocklyMainBackground{
  stroke: #FFFFFF;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.boxes {
  --size: 32px;
  --duration: 800ms;
  height: calc(var(--size) * 2);
  width: calc(var(--size) * 3);
  position: relative;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  margin: 250px auto;
  margin-top: calc(var(--size) * 1.5 * -1);
  transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}

.boxes .box {
  width: var(--size);
  height: var(--size);
  top: 0;
  left: 0;
  position: absolute;
  transform-style: preserve-3d;
  margin: 250px auto;
}

.boxes .box:nth-child(1) {
  transform: translate(100%, 0);
  -webkit-animation: box1 var(--duration) linear infinite;
  animation: box1 var(--duration) linear infinite;
  margin: 250px auto;
}

.boxes .box:nth-child(2) {
  transform: translate(0, 100%);
  -webkit-animation: box2 var(--duration) linear infinite;
  animation: box2 var(--duration) linear infinite;
  margin: 250px auto;
}

.boxes .box:nth-child(3) {
  transform: translate(100%, 100%);
  -webkit-animation: box3 var(--duration) linear infinite;
  animation: box3 var(--duration) linear infinite;
  margin: 250px auto;
}

.boxes .box:nth-child(4) {
  transform: translate(200%, 0);
  -webkit-animation: box4 var(--duration) linear infinite;
  animation: box4 var(--duration) linear infinite;
  margin: 250px auto;
}

.boxes .box > div {
  --background: #5C8DF6;
  --top: auto;
  --right: auto;
  --bottom: auto;
  --left: auto;
  --translateZ: calc(var(--size) / 2);
  --rotateY: 0deg;
  --rotateX: 0deg;
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--background);
  top: var(--top);
  right: var(--right);
  bottom: var(--bottom);
  left: var(--left);
  margin: 250px auto;
  transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}

.boxes .box > div:nth-child(1) {
  --top: 0;
  --left: 0;
  margin: 250px auto;
}

.boxes .box > div:nth-child(2) {
  --background: #145af2;
  --right: 0;
  --rotateY: 90deg;
  margin: 250px auto;
}

.boxes .box > div:nth-child(3) {
  --background: #447cf5;
  --rotateX: -90deg;
  margin: 250px auto;
}

.boxes .box > div:nth-child(4) {
  --background: #DBE3F4;
  --top: 0;
  --left: 0;
  --translateZ: calc(var(--size) * 3 * -1);
  margin: 250px auto;
}

@-webkit-keyframes box1 {
  0%, 50% {
    transform: translate(100%, 0);
    margin: 250px auto;
  }

  100% {
    transform: translate(200%, 0);
    margin: 250px auto;
  }
}

@keyframes box1 {
  0%, 50% {
    transform: translate(100%, 0);
    margin: 250px auto;
  }

  100% {
    transform: translate(200%, 0);
    margin: 250px auto;
  }
}

@-webkit-keyframes box2 {
  0% {
    transform: translate(0, 100%);
    margin: 250px auto;
  }

  50% {
    transform: translate(0, 0);
    margin: 250px auto;
  }

  100% {
    transform: translate(100%, 0);
    margin: 250px auto;
  }
}

@keyframes box2 {
  0% {
    transform: translate(0, 100%);
    margin: 250px auto;
  }

  50% {
    transform: translate(0, 0);
    margin: 250px auto;
  }

  100% {
    transform: translate(100%, 0);
    margin: 250px auto;
  }
}

@-webkit-keyframes box3 {
  0%, 50% {
    transform: translate(100%, 100%);
    margin: 250px auto;
  }

  100% {
    transform: translate(0, 100%);
    margin: 250px auto;
  }
}

@keyframes box3 {
  0%, 50% {
    transform: translate(100%, 100%);
    margin: 250px auto;
  }

  100% {
    transform: translate(0, 100%);
    margin: 250px auto;
  }
}

@-webkit-keyframes box4 {
  0% {
    transform: translate(200%, 0);
    margin: 250px auto;
  }

  50% {
    transform: translate(200%, 100%);
    margin: 250px auto;
  }

  100% {
    transform: translate(100%, 100%);
    margin: 250px auto;
  }
}

@keyframes box4 {
  0% {
    transform: translate(200%, 0);
    margin: 250px auto;
  }

  50% {
    transform: translate(200%, 100%);
    margin: 250px auto;
  }

  100% {
    transform: translate(100%, 100%);
    margin: 250px auto;
  }
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
  border-radius: 10px;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.spinner {
 --size: 30px;
 --first-block-clr: #005bba;
 --second-block-clr: #fed500;
 --clr: #111;
 width: 100px;
 height: 100px;
 position: relative;
}

.spinner::after,.spinner::before {
 box-sizing: border-box;
 position: absolute;
 content: "";
 width: var(--size);
 height: var(--size);
 top: 50%;
 animation: up 2.4s cubic-bezier(0, 0, 0.24, 1.21) infinite;
 left: 50%;
 background: var(--first-block-clr);
}

.spinner::after {
 background: var(--second-block-clr);
 top: calc(50% - var(--size));
 left: calc(50% - var(--size));
 animation: down 2.4s cubic-bezier(0, 0, 0.24, 1.21) infinite;
}

@keyframes down {
 0%, 100% {
  transform: none;
 }

 25% {
  transform: translateX(100%);
 }

 50% {
  transform: translateX(100%) translateY(100%);
 }

 75% {
  transform: translateY(100%);
 }
}

@keyframes up {
 0%, 100% {
  transform: none;
 }

 25% {
  transform: translateX(-100%);
 }

 50% {
  transform: translateX(-100%) translateY(-100%);
 }

 75% {
  transform: translateY(-100%);
 }
}
